openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar
openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar
openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar
openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar
#Install and use pip in a local directory without root/sudo access. #####By: @saurabhshri
##Why?
Many users when are given server access, do not have root (or sudo) privileges and can not simply do
sudo apt-get install python-pip
.
Here's an easy way you can install and use pip without root (or sudo) access in a local directory.
Note : This works without easy_install
too.
##How?
This summary/conclusion will not be updated anymore. I have switched to .NET 5 completely, which runs on Windows 7 SP1 and newer.
For class libraries, I will use the targets .NET Standard 1.1, 2.0 and 2.1 at the same time, together with .NET Framework 2.0 and 4.0. Applications on the other hand will always targeted to .NET 5.0 only.
Recommended minimum system requirements
# 1/ Read EXIF orientation flag | |
identify -format "%[EXIF:orientation]" myimage.jpg | |
# NOTE: jhead can be used too | |
# see http://www.sentex.net/~mwandel/jhead/ | |
jhead -exifmap myimage.jpg | grep Ori | |
# 2/ Remove EXIF orientation | |
# i.e. rotate the image accordingly and reset the orientation | |
# flag to 1 (default, i.e. origin = TopLeft) |
Tested using WorkStation Pro 16.x, Windows host and guest in UEFI mode, using an Intel CPU.
# Unnecessary indexes slows down writes and consumes additional storage and memory. | |
# Just paste this snippet in your Rails console (bundle exec rails c). | |
# And it will print all redundant indexes that are already covered by another index on the table: | |
# Table `pages`: index `site_idx` (site_id) already covered by `site_slug_idx` (site_id,slug) | |
# Table `optins`: index `list_idx` (list_id) already covered by `list_active_idx` (list_id,active) | |
ActiveRecord::Base.connection.tables.map do |table| | |
indexes = ActiveRecord::Base.connection.indexes(table).select(&:valid).reject(&:where) |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
This page is a curated collection of Jupyter/IPython notebooks that are notable for some reason. Feel free to add new content here, but please try to only include links to notebooks that include interesting visual or technical content; this should not simply be a dump of a Google search on every ipynb file out there.
Important contribution instructions: If you add new content, please ensure that for any notebook you link to, the link is to the rendered version using nbviewer, rather than the raw file. Simply paste the notebook URL in the nbviewer box and copy the resulting URL of the rendered version. This will make it much easier for visitors to be able to immediately access the new content.
Note that Matt Davis has conveniently written a set of bookmarklets and extensions to make it a one-click affair to load a Notebook URL into your browser of choice, directly opening into nbviewer.